{include file="public/nheader" /}
<div class="layui-fluid layui-bg-white">
    <form action="{:url()}" class="layui-form layui-form-fixed">
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">*</font>账号
            </label>
            <div class="layui-input-block">
                <input type="text" id="account" name="account" required="" lay-verify="required" autocomplete="off"
                    class="layui-input" value="{$row.account|default=''}" placeholder="请填写用户账号">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>客户名称(备注)
            </label>
            <div class="layui-input-block">
                <input type="text" name="remrk" required="" lay-verify="required" autocomplete="off" class="layui-input"
                    value="{$row.remrk|default=''}" placeholder="请填写用户名称、备注">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>身份类型
            </label>
            <div class="layui-input-block">
                <select name="type" lay-search>
                    <option value="">身份类型</option>
                    {foreach $typelist as $k => $v}
                    <option value="{$k}" {if !empty($row['type']) && $row['type']==$k}selected{/if}>{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>负责项目
            </label>
            <div class="layui-input-block">
                {foreach $grouplist as $k => $v}
                <input name="groups[]" lay-skin="primary" type="checkbox" value="{$k}" title="{$v}"
                    {if !empty($row.groups) && in_array($k, $row.groups)} checked {/if}>
                {/foreach}
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>客户密码(新添加必须填写)
            </label>
            <div class="layui-input-block">
                <input type="text" name="password"  autocomplete="off"
                    class="layui-input" value="" placeholder="请填写客户密码">
            </div>
        </div>
        <div class="layui-footer layui-form-item layui-center ">
            <input type="hidden" value="{$row['id']|default='0'}" name="id" />
            <button class="layui-btn" lay-filter="submitIframe" type="button" lay-submit>提交</button>
            <button class="layui-btn layui-btn-primary" type="button" sa-event="closeDialog">取消</button>
        </div>
    </form>
</div>
{include file="public/nfooter" /}